package com.qf.jie.entity.bo;

import com.qf.jie.entity.po.Comment;
import com.qf.jie.entity.po.Commodity;

import java.util.List;

public class CommodityAndCommentBo {
    private Commodity commodity;
    private List<Comment> comments;

    public CommodityAndCommentBo(){}
    public CommodityAndCommentBo(Commodity commodity, List<Comment> comments) {
        this.commodity = commodity;
        this.comments = comments;
    }

    public Commodity getCommodity() {
        return commodity;
    }

    public void setCommodity(Commodity commodity) {
        this.commodity = commodity;
    }

    public List<Comment> getComments() {
        return comments;
    }

    public void setComments(List<Comment> comments) {
        this.comments = comments;
    }

    @Override
    public String toString() {
        return "CommodityAndCommentBo{" +
                "commodity=" + commodity +
                ", comments=" + comments +
                '}';
    }
}
